#include"lottery_sys.h"
#include"ui.h"
void save_lott_list(Lottery_t* lott_head)
{
	FILE* fp = NULL;
	Lottery_t* cur = NULL;
	if(NULL == lott_head)
	{   
		return;
	}   
	fp = fopen(LOTTERY_FILE,"w");
	if(NULL == fp) 
	{   
		return;
	}   
	cur = lott_head -> next;
	while(cur != NULL)
	{   
		fwrite(cur,sizeof(Lottery_t),1,fp);
		cur = cur -> next;
	}   
	fclose(fp);
}

